usually with Number_format (); To format a number, by default the thousand characters are separated by commas, such as:
Copy CodeThe code is as follows:
Echo Number_format ("10000.01231", 2);
Take 2 digits after the decimal point, the result of the
Upload the file email. php and emailclass. php to the same directory, and create a subdirectory temp under this directory. set the permission to 0777, and execute email. php to send an email. This emailclass. php function is already quite complete. 1
Reproduced to: http://hi.baidu.com/software_2008/blog/item/7d768731dde7ee11eac4af16.html
System pre-defined error code
SQL Server has 3831 predefined error codes, which are maintained in the master. dbo. sysmessages table. Each error code has a
With no null
, why set the dataformatstring has no effect. Do not ignore the two important attributes of BoundField HTMLEncode and Applyformatineditmode. HtmlEncode The BoundField used by the GridView differs from the DataGrid using BoundColumn,
Definition and usageThe Number_format () function formats numbers by using thousands of groupings.
GrammarNumber_format (Number,decimals,decimalpoint,separator)
Parameter descriptionNumber required. The number to format. If no other parameters are
In PHP, there are many ways to format strings, which can be formatted according to the format of the formatted numeric characters, and the formatting of numeric characters is most commonly used. Let's take a look at the numeric character Format
Sometimes when writing articles, the code referenced in the paragraph is interpreted into the original HTML, by using some special characters in the HTML encoding can be returned to the original text, preserving the original format. Character
We often encounter situations where we need to process the data stored or transmitted in various formats (from files with commas or tabs as separators to more load formats, you need a parser for each format ). This shortcoming slows down the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.